//
//  LDFinderMessageVC.swift
//  DingDongZP
//
//  Created by 三秒文化 on 16/6/1.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

import UIKit

class LDFinderConversationVC: RCConversationViewController {

    var model:RCConversationModel?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        enableSaveNewPhotoToLocalSystem = true
        displayUserNameInCell = false
//        setMessageAvatarStyle(RCUserAvatarStyle.USER_AVATAR_CYCLE)
//        pluginBoardView.removeItemAtIndex(2)
        
        
    }
    
    override func viewWillAppear(animated: Bool) {
        
        super.viewWillAppear(animated)
        rdv_tabBarController.setTabBarHidden(true, animated: true)
        
    }
    
    //将要发送消息
    override func willSendMessage(messageCotent: RCMessageContent!) -> RCMessageContent! {
        
//        let messgage = messageCotent.senderUserInfo
        
        return messageCotent
        
    }
    override func sendMessage(messageContent: RCMessageContent!, pushContent: String!) {
        
//        let message = messageContent
        
    }
    
    
    //打图片浏览器
    override func presentImagePreviewController(model: RCMessageModel!) {
        let vc = RCImagePreviewController()
        vc.messageModel = model
        vc.title = model.userInfo.name
        presentViewController(vc, animated: true, completion: nil)
    }
    
    override func didLongTouchMessageCell(model: RCMessageModel!, inView view: UIView!) {
        super.didLongTouchMessageCell(model, inView: view)
    }

    override func pluginBoardView(pluginBoardView: RCPluginBoardView!, clickedItemWithTag tag: Int) {
        super.pluginBoardView(pluginBoardView, clickedItemWithTag: tag)
    }
    
    override func didTapMessageCell(model: RCMessageModel!) {
        super.didTapMessageCell(model)
        
    }
    
    override func didTapCellPortrait(userId: String!) {
        super.didTapCellPortrait(userId)
    }
    
}
